import {
    excelUtil as ExcelUtil
} from '../../../../util/';
            var QRCode = require('qrcode')

module.exports = {
    name: 'test',

    data() {
        return {
            src:''
        }
    },

    methods: {
        downloadExl() {
            console.log(123)
            
                // var data = ExcelUtil.formatterData(title, datas);
                // ExcelUtil.downloadExl(this.downloadName, data);
        }
    },created() {
        var that = this
        QRCode.toDataURL('http://www.baidu.com', {type:'txt'},function (err, url) {
            that.src = url
            console.log(url)
        })
    }
}